{% extends "base.html" %}
{% block title %}
    知了问答-注册
{% endblock %}

{% block head %}
    <script src="{{ url_for('static',filename='jquery/jquery.3.6.min.js') }}"></script>
    <script src="{{ url_for('static',filename='js/register.js') }}"></script>
{% endblock %}

{% block body %}
    <div class="row mt-4">
        <div class="col"></div>
        <div class="col">
            <form method="POST" action="{{ url_for('user.register') }}">
                <div class="form-group">
                    <label for="exampleInputEmail1">邮箱</label>
                    <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp"
                           name="email">
                </div>
                <div class="form-group">
                    <label for="exampleInputCode">验证码</label>

                    <div class="input-group is-invalid">
                        <input type="text" class="form-control" name="captcha" id="exampleInputEmail1"
                               aria-describedby="emailHelp">
                        <div class="input-group-append">
                            <button class="btn btn-outline-secondary" id="captcha-btn" type="button">获取验证码</button>
                        </div>
                    </div>


                </div>
                <div class="form-group">
                    <label for="exampleInputPassword1">用户名</label>
                    <input type="text" class="form-control" name="username" id="exampleInputPassword1">
                </div>

                <div class="form-group">
                    <label for="exampleInputPassword1">密码</label>
                    <input type="password" class="form-control" name="password" id="exampleInputPassword1">
                </div>
                <div class="form-group">
                    <label for="exampleInputPassword2">确认密码</label>
                    <input type="password" class="form-control" name="password_com" id="exampleInputPassword2">
                </div>

                <button type="submit" class="btn btn-primary btn-block">注册</button>
            </form>
        </div>
        <div class="col"></div>
    </div>
{% endblock %}